﻿
var status = 0;
var ttt = "#fUI/UIWindow/Quest/icon2/7#";//"+ttt+"//美化1
var ttt2 = "#fUI/UIWindow/Quest/icon6/7#";////美化2
var ttt3 = "#fUI/UIWindow/Quest/icon3/6#";//"+ttt3+"//美化圆
var ttt4 = "#fUI/UIWindow/Quest/icon5/1#";//"+ttt4+"//美化New
var ttt5 = "#fUI/UIWindow/Quest/icon0#";////美化!
var ttt7 = "#fUI/Basic/BtHide3/mouseOver/0#";//"+ttt6+"//美化会员
var ttt8 = "#fUI/UIWindow.img/PvP/Scroll/enabled/next2#";
var ttt6 = "#fEffect/CharacterEff/1114000/1/0#";  //红星花
var p1 = "#fUI/StatusBar2.img/starPlanet/achive/1#";

function start() {
    status = -1;
    action(1, 0, 0);
}

function action(mode, type, selection) {
    if (status == 0 && mode == 0) {
        cm.dispose();
        return;
    }
    if (mode == 1) {
        status++;
    } else {
        status--;
    }
    if (cm.getMapId() == 180000001) {
        cm.sendOk("很遗憾，您因为违反用户守则被禁止游戏活动，如有异议请联系管理员.")
        cm.dispose();
    }
    else if (status == 0) {
        var selStr = "                    #v3991052##v3991053##v3991054##v3991055#\r\n";
        selStr +="#b======================================================#k";
        selStr += "#L13#" + p1 + " #b武林大会,谁是真英雄..#r(表情,胡子,效果..New~)#l\r\n";
        selStr += "#L12#" + p1 + " #b枫之高校,学习季#r(征服币,运动币,New~)#l\r\n";
        selStr += "#L10#" + p1 + " #b阿里安特竞技场#r竞技积分(拍卖兑换征服币New~)#l#n\r\n";
        selStr += "#b#L0#" + p1 + " #b米纳尔森林保卫战#r(大量征服币等你拿New~)#l\r\n";
        //selStr += "#L1#" + p1 + " #b全民飞机大战#r(140装备.所有必成,稀有卷轴New~)#l\r\n";
        selStr += "#L3#" + p1 + " #b利弗里的天空庭院#r(椅子.翅膀.勋章New~)#l\r\n";
        selStr += "#L4#" + p1 + " #b挑战英语村的大卫先生吧#r(可兑换椅子装备等New~)#l\r\n";
        selStr += "#L5#" + p1 + " #b寺院：僧侣诺伊的情愿#r(椅子,混沌卷.无损New~)\r\n";
        selStr += "#L6#" + p1 + " #b关卡火力测试(小试牛刀)#r(蓝调,点点红,图腾New~)\r\n";
        selStr += "#L7#" + p1 + " #b家园保卫战#r(Red币,征服币,可换取装备..New~)\r\n";
        selStr += "#L8#" + p1 + " #b#n拯救公主[HOT](大量游戏币种，装备)#l\r\n";
	    selStr += "#L2#" + p1 + " #b被困在城里的冒险家#r(征服币,运动币..New~)\r\n";
		selStr += "#L11#" + p1 + " #b神话副本<最强神化耳环>#r(耳环,材料,椅子New~)\r\n";
        selStr += "#L9#" + p1 + " #b生化魔人欧碧啦#r(蓝调,魔方,卷轴,征服币New~)#l\r\n";

        selStr += "\r\n";
			selStr +="#e#g================更多副本更新中=================\r\n\r\n";
        cm.sendSimple(selStr);
    } else if (status == 1) {
        switch (selection) {
            case 0:
                cm.dispose();
                cm.openNpc(9900003, 109);
                break;
            case 1:
                cm.worldSpouseMessage(0x15, "[全民飞机大战] ：玩家 " + cm.getChar().getName() + " 进入了机场候机室。");
                cm.dispose();
                cm.warp(540010001);
                break;
            case 2:
                cm.dispose();
                cm.openNpc(9900003, 107);
                break;
            case 3:
                cm.dispose();
                cm.openNpc(9220032);
                break;
            case 4:
                cm.dispose();
                cm.openNpc(9310057);
                break;
            case 5:
                cm.dispose();
                cm.openNpc(9900003, 101);
                break;
            case 6:
                cm.dispose();
                cm.openNpc(9900003, 102);
                break;
            case 7:
                cm.dispose();
                cm.openNpc(9900003, 700);
                break;
            case 8:
                cm.dispose();
                cm.openNpc(9310114, 2);
                break;
            case 9:
                cm.dispose();
                cm.openNpc(9120050);
                break;
            case 10:
                cm.dispose();
                cm.openNpc(2101017,1);
                break;
			case 11:
				cm.dispose();
				cm.warp(262030000);
				break;
			case 12:
				cm.dispose();
                                cm.openNpc(9330189,0);
				break;
			case 13:
				cm.dispose();
                                cm.openNpc(9330246,0);
				break;



        }
    }
}
